Repository navigation
Red checks take out only what breaks them; lockfiles before a stopped run's pull request; one fault decision for every fix round - #647
Merged
Conversation
… run's pull request; one fault decision for every fix round - A dependency fix whose pull request's CI stays red after the fixes takes out its newest commit of verified bumps, defers those bumps with what CI printed and keeps the commits before it, again while CI stays red, never emptying the pull request. It used to be taken apart by planned task (one per lockfile), which put a lockfile back without its manifest. - Any other run is taken apart task by task up to eight reverts (three before), so the part that passes ships with the rest under Deferred instead of the run ending failed with tasks that could still come out. - A stopped run's lockfiles are written by their package managers before its pull request opens or is updated. - A review fix, security fix, planned-work or feedback round whose landing GitHub refuses, or whose pass errors, takes the CI fix round's classified decision (round::plan_for_fault): it runs again in a fresh step while it may continue, on its work branch when only the landing failed and from the pull request's head otherwise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #646. Three ways were left for a run to end badly over red checks or a refused landing:
Changes
DepRun.commits). When its pull request's CI is red after the fixes,revert_dep_commitputs the branch back to the files before the newest commit, defers that commit's bumps with the cause CI printed, holds their findings out of later bundles, and keeps the commits before it. It does so again while CI stays red and never takes out the last commit. The pull request names each bump under "Deferred".stop_pr::open_withregenerates the lockfiles the branch calls for before it reads the diff or opens the pull request. One that can't be written is named on the run and never stops the pull request.round::plan_for_fault,after_fault_parked,keeps_work,start_clean): the CI fix loop,run_fix_round(review fix, security fix, planned work) and the feedback pass all use it. A round that may continue runs again in a fresh step: on its work branch when only the landing failed (a refused push or compare, GitHub not answering), from the pull request's head otherwise. Only a round with no step left is recorded as unfinished.Verification
cargo test -p worker: 1,615 passed.cargo test -p common --lib dep_fix: 27 passed.cargo clippy -p common -p worker --all-targets -- -D warningsandcargo fmt --check --all: clean.ag_red_ci_ships_what_passes(4 tests): a dependency run with three sets defers only the newest and names the bump and the failure; a six-task plan is taken apart past the old cap of three down to one task; the stopped run's lockfile step comes before the diff and the pull request; every round kind takes the same decision, keeping its work on a refused push.dep_fixtest for the commit record andtake_out_last_commit, including a saved run from before commits were kept.docs/incidents.mdhas the case's row.